package com.bestcem.xm.survey.enums;

/**
 * 工单导出状态枚举
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @date 2021/11/17 14:41
 */
public enum ExportStatusEnum {
    /**
     * 生成中
     */
    PROCESSING("生成中", 0),
    /**
     * 导出成功
     */
    SUCCESS("导出成功", 1),
    /**
     * 导出失败
     */
    FAILED("导出失败", 2),
    /**
     * 等待中
     */
    WAITING("等待中", 3);

    private final String name;

    private final Integer index;

    ExportStatusEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }

    public Integer getIndex() {
        return index;
    }

    public String getName() {
        return name;
    }
}